package org.swfer.test 
{
	import flash.display.Graphics;
	import flash.display.Sprite;
	import flash.utils.getTimer;
	import org.swfer.UICExtend.Singleton;
	import org.swfer.UICExtend.Tween;
	
	/**
	 * ...
	 * @author swfer
	 */
	public class Test_Tween extends BaseTest 
	{
		public function Test_Tween() 
		{
		}
		
		override protected function toDo():void
		{
			var view:*= Singleton.skinManager.getSkin('DialogSkin');
			addChild(view)
			view.alpha = 1;
			
			//N个过渡效果作用于对象之上。效果叠加
			new Tween(view,500,{alpha:0,onComplete:complete,ease:Tween.SineOutIn});
			new Tween(view,500,{delay:450,alpha:1,x:0,y:0,onComplete:complete,ease:Tween.SineOutIn});
			new Tween(view,2000,{delay:1000,alpha:1,x:200,y:200,onComplete:complete,ease:Tween.SineInOut});
		}
		
		private function complete():void
		{
			trace('complete');
		}
		
		
	}

}